<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>校友相亲</title>
  <!-- 引入Bootstrap CSS -->
  <link href="../asset/bootstrap-5.3.0-alpha1-dist/css/bootstrap.min.css" rel="stylesheet">
  <link rel="stylesheet" href="../asset/css/nav.css">
  <!-- 自定义样式 -->
  <style>
    .card {
      margin-bottom: 2rem; /* 卡片之间的距离 */
    }
    .card-img-top {
      width: 100px; /* 设置头像宽度 */
      height: 100px; /* 设置头像高度 */
      border-radius: 50%; /* 圆形头像 */
      object-fit: cover; /* 确保图片覆盖整个元素区域 */
      margin-top: 17px;
      margin-left: 10px;
    }
    .card-body {
      padding: 1rem; /* 卡片内容的内间距 */
    }
  </style>
</head>
<body>
<!-- 导航栏 -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <div class="container-fluid">
    <a class="navbar-brand" href="#">校友交流系统</a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
      <ul class="navbar-nav">
        <li class="nav-item">
          <a class="nav-link active" aria-current="page" href="../index.html">首页</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="xiaoyou_minglu.html">校友名录</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="xiaoyyou_xiangqin.html">校友相亲</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="xiaoyou_juanzeng.html">捐赠信息</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="xiaoyou_luntan.html">校友论坛</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="call_us.html">联系我们</a>
        </li>
      </ul>
    </div>
  </div>
</nav>

<!-- 主体内容 -->
<div class="container mt-4">
  <h1>校友相亲</h1>
  <p>在这里，你可以找到志同道合的校友，共同探讨生活和未来。</p>

  <!-- 校友卡片 -->
  <div class="row">
    <div class="col-12">
      <!-- 校友A的卡片 -->
      <div class="card">
        <div class="row">
          <div class="col-1">
            <img src="../asset/img/xiaoyou_A.jpg" class="card-img-top" alt="校友A">
          </div>
          <div class="col-11">
            <div class="card-body">
              <h5 class="card-title">农大不死鸟</h5>
              <p class="card-text">宇智波佐助    木叶生人    湖南农业大学2010年毕业生    专业：计算机科学与技术</p>
              <!-- 按钮 -->
              <a href="#" class="btn btn-primary" data-toggle="modal" data-target="#contactModal">联系TA</a>
            </div>
          </div>
        </div>
      </div>
<!--    校友A的模态框-->
      <!-- 模态框 -->
      <div class="modal fade" id="contactModal" tabindex="-1" role="dialog" aria-labelledby="contactModalLabel" aria-hidden="true">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="contactModalLabel">联系TA</h5>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
              <!-- 这里可以放置联系表单或其他内容 -->
              <p>这里是模态框的内容。你可以在这里添加联系表单或其他信息。</p>
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
              <button type="button" class="btn btn-primary">发送</button>
            </div>
          </div>
        </div>
      </div>

      <!-- 校友B的卡片 -->
      <div class="card">
        <div class="row">
          <div class="col-1">
            <img src="../asset/img/xiaoyou_B.jpg" class="card-img-top" alt="校友B">
          </div>
          <div class="col-11">
            <div class="card-body">
              <h5 class="card-title">乐队不倒松</h5>
              <p class="card-text">井芹仁菜    霓虹留学生    湖南农业大学2020年毕业生    专业：互联网</p>
              <a href="#" class="btn btn-primary">联系TA</a>
            </div>
          </div>
        </div>
      </div>

      <!-- 校友C的卡片 -->
      <div class="card">
        <div class="row">
          <div class="col-1">
            <img src="../asset/img/xiaoyou_C.jpg" class="card-img-top" alt="校友C">
          </div>
          <div class="col-11">
            <div class="card-body">
              <h5 class="card-title">光！</h5>
              <p class="card-text">迪迦    光之国来访    湖南农业大学2011年毕业生    专业：斯派修姆</p>
              <a href="#" class="btn btn-primary">联系TA</a>
            </div>
          </div>
        </div>
      </div>

      <!-- 更多校友卡片 -->
    </div>
  </div>
</div>

<!-- 页脚 -->
<footer class="footer mt-auto py-3 bg-light">
  <div class="container">
    <span class="text-muted">&copy; 2024 校友交流系统</span>
  </div>
</footer>

<!-- 引入Bootstrap JS -->
<script src="../asset/bootstrap-5.3.0-alpha1-dist/js/bootstrap.bundle.min.js"></script>
<script>
  document.addEventListener('DOMContentLoaded', function () {
    var contactModal = new bootstrap.Modal(document.getElementById('contactModal'), {
      keyboard: false
    });
  });
</script>
</body>
</html>